#include<stdio.h>
int main(){
	int a;
	bool b = true;
	scanf("%d",&a);
	do{
		if(a % 10 != 0 || b == false){
			printf("%d",a % 10);
			b = false;
		}
		a /= 10;
	}while(a != 0);
	return 0;
}
